<?php defined('SYSPATH') OR die('No direct access allowed.');

class access_Core {

	public function can($resource, $action, $parent = NULL) {
		if (is_string($resource)) {
			$resource = ORM::factory($resource);
		}
		return A2::instance()->allowed($resource, $action);
	}

}